package com.stage.communication;

import java.io.BufferedReader;
import java.io.IOException;

/**
 * Created by Stage on 2017/3/24.
 */
public class ClientRead implements Runnable {
    private BufferedReader reader;
    public ClientRead(BufferedReader reader) {
        this.reader = reader;
    }
    @Override
    public void run() {
        try {
            while (true) {
                String mes;
                try {
                    mes = reader.readLine();
                    if (!mes.equals("")) {
                        System.out.println("客服说:" + mes);
                    }
                } catch (IOException e) {
                }
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
